home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1996 May / Software of the Month Club 1996 May.iso / mac / ISO9660 / ZIPFILES / BMPWIZ.ZIP / BNSCALE.BAS < prev    next >
Unknown  |  1995-01-23  |  943 b 

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert GW-BASIC (document/gwBasic) ext Supported
66% dexvert GFA-BASIC Atari (other/gfaBASICAtari) ext Supported
1% dexvert Amiga BASIC Protected File (other/amigaBASICProtectedFile) ext Unsupported
1% dexvert BAS VBDOS Pro 1.0 Source (other/basVBDOSPro10Source) ext Unsupported
1% dexvert Visual Basic Tokenized Source (other/visualBasicTokenizedSource) ext Unsupported
1% dexvert ZBASIC (other/zbasic) ext Unsupported
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| ab 03 00 00 0d 0a 27 20 | 47 72 61 79 73 20 73 63 |......' |Grays sc|
|00000010| 61 6c 65 2e 0d 0a 27 20 | 43 72 65 74 65 20 61 20 |ale...' |Crete a |
|00000020| 67 72 61 79 20 73 63 61 | 6c 65 2c 20 6d 6f 64 69 |gray sca|le, modi|
|00000030| 66 69 6e 67 20 72 65 6d | 20 28 27 29 20 74 68 65 |fing rem| (') the|
|00000040| 20 70 72 6f 67 72 61 6d | 20 63 61 6e 20 63 72 65 | program| can cre|
|00000050| 61 74 65 20 52 47 42 20 | 73 63 61 6c 65 2e 0d 0a |ate RGB |scale...|
|00000060| 0d 0a 27 20 49 6e 70 75 | 74 3a 09 2d 0d 0a 27 20 |..' Inpu|t:.-..' |
|00000070| 4f 75 74 70 75 74 3a 09 | 34 2d 38 2d 32 34 20 62 |Output:.|4-8-24 b|
|00000080| 69 74 0d 0a 0d 0a 27 20 | 41 75 74 68 6f 72 3a 09 |it....' |Author:.|
|00000090| 41 6e 64 72 65 61 20 42 | 65 6e 6f 6e 69 09 09 20 |Andrea B|enoni.. |
|000000a0| 72 65 76 3a 09 31 2e 32 | 0d 0a 0d 0a 0d 0a 66 6c |rev:.1.2|......fl|
|000000b0| 6f 61 74 09 78 2c 79 2c | 58 73 69 7a 65 2c 59 73 |oat.x,y,|Xsize,Ys|
|000000c0| 69 7a 65 2c 62 69 74 0d | 0a 73 74 72 69 6e 67 20 |ize,bit.|.string |
|000000d0| 20 20 20 09 75 73 63 69 | 74 61 0d 0a 44 65 76 43 | .usci|ta..DevC|
|000000e0| 6f 6e 09 69 6d 67 0d 0a | 52 47 42 09 70 69 78 0d |on.img..|RGB.pix.|
|000000f0| 0a 0d 0a 75 73 63 69 74 | 61 3d 22 54 65 73 74 6f |...uscit|a="Testo|
|00000100| 2e 62 6d 70 22 09 09 27 | 20 6f 75 74 70 75 74 20 |.bmp"..'| output |
|00000110| 66 69 6c 65 20 6e 61 6d | 65 0d 0a 58 73 69 7a 65 |file nam|e..Xsize|
|00000120| 3d 31 30 30 09 09 27 20 | 58 20 6c 65 6e 0d 0a 59 |=100..' |X len..Y|
|00000130| 73 69 7a 65 3d 34 30 30 | 09 09 27 20 59 20 6c 65 |size=400|..' Y le|
|00000140| 6e 0d 0a 62 69 74 3d 38 | 0d 0a 0d 0a 69 6d 67 3d |n..bit=8|....img=|
|00000150| 43 72 65 61 74 65 49 6d | 61 67 65 28 58 73 69 7a |CreateIm|age(Xsiz|
|00000160| 65 2c 59 73 69 7a 65 2c | 62 69 74 29 0d 0a 0d 0a |e,Ysize,|bit)....|
|00000170| 69 66 28 69 6d 67 2e 42 | 69 74 43 6f 75 6e 74 3d |if(img.B|itCount=|
|00000180| 38 29 09 09 09 27 20 69 | 66 20 38 20 62 69 74 20 |8)...' i|f 8 bit |
|00000190| 63 6f 70 79 20 70 61 6c | 65 74 74 65 0d 0a 20 20 |copy pal|ette.. |
|000001a0| 20 46 6f 72 20 79 3d 30 | 20 20 74 6f 20 32 35 35 | For y=0| to 255|
|000001b0| 0d 0a 20 20 20 20 20 70 | 69 78 2e 4c 75 6d 3d 79 |.. p|ix.Lum=y|
|000001c0| 09 09 09 27 20 47 72 61 | 79 20 73 63 61 6c 65 0d |...' Gra|y scale.|
|000001d0| 0a 20 20 20 20 20 27 70 | 69 78 2e 52 65 64 3d 79 |. 'p|ix.Red=y|
|000001e0| 09 09 09 27 20 52 65 64 | 20 73 63 61 6c 65 0d 0a |...' Red| scale..|
|000001f0| 20 20 20 20 20 27 70 69 | 78 2e 47 72 65 65 6e 3d | 'pi|x.Green=|
|00000200| 79 09 09 09 27 20 47 72 | 65 65 6e 20 73 63 61 6c |y...' Gr|een scal|
|00000210| 65 0d 0a 20 20 20 20 20 | 27 70 69 78 2e 42 6c 75 |e.. |'pix.Blu|
|00000220| 65 3d 79 09 09 09 27 20 | 42 6c 75 65 20 73 63 61 |e=y...' |Blue sca|
|00000230| 6c 65 0d 0a 20 20 20 20 | 20 53 65 74 50 61 6c 65 |le.. | SetPale|
|00000240| 74 74 65 28 69 6d 67 2c | 79 2c 70 69 78 29 0d 0a |tte(img,|y,pix)..|
|00000250| 20 20 20 6e 65 78 74 20 | 79 0d 0a 65 6e 64 69 66 | next |y..endif|
|00000260| 0d 0a 0d 0a 46 6f 72 20 | 79 3d 30 20 74 6f 20 69 |....For |y=0 to i|
|00000270| 6d 67 2e 48 65 69 67 68 | 74 2d 31 0d 0a 0d 0a 20 |mg.Heigh|t-1.... |
|00000280| 20 20 44 73 70 57 68 69 | 6c 65 28 22 43 72 65 61 | DspWhi|le("Crea|
|00000290| 74 69 6e 67 20 61 20 67 | 72 61 79 20 73 63 61 6c |ting a g|ray scal|
|000002a0| 65 22 2c 31 30 30 2f 59 | 73 69 7a 65 2a 79 29 0d |e",100/Y|size*y).|
|000002b0| 0a 0d 0a 20 20 20 70 69 | 78 2e 4c 75 6d 3d 32 35 |... pi|x.Lum=25|
|000002c0| 35 2f 59 73 69 7a 65 2a | 79 0d 0a 20 20 20 27 70 |5/Ysize*|y.. 'p|
|000002d0| 69 78 2e 52 65 64 3d 32 | 35 35 2f 59 73 69 7a 65 |ix.Red=2|55/Ysize|
|000002e0| 2a 79 0d 0a 20 20 20 27 | 70 69 78 2e 47 72 65 65 |*y.. '|pix.Gree|
|000002f0| 6e 3d 32 35 35 2f 59 73 | 69 7a 65 2a 79 0d 0a 20 |n=255/Ys|ize*y.. |
|00000300| 20 20 27 70 69 78 2e 42 | 6c 75 65 3d 32 35 35 2f | 'pix.B|lue=255/|
|00000310| 59 73 69 7a 65 2a 79 0d | 0a 0d 0a 20 20 20 46 6f |Ysize*y.|... Fo|
|00000320| 72 20 78 3d 30 20 74 6f | 20 69 6d 67 2e 57 69 64 |r x=0 to| img.Wid|
|00000330| 74 68 2d 31 0d 0a 20 20 | 20 20 20 20 53 65 74 50 |th-1.. | SetP|
|00000340| 69 78 65 6c 28 69 6d 67 | 2c 78 2c 79 2c 70 69 78 |ixel(img|,x,y,pix|
|00000350| 29 0d 0a 20 20 20 4e 65 | 78 74 20 78 0d 0a 4e 65 |).. Ne|xt x..Ne|
|00000360| 78 74 20 79 0d 0a 0d 0a | 53 61 76 65 49 6d 61 67 |xt y....|SaveImag|
|00000370| 65 28 69 6d 67 2c 75 73 | 63 69 74 61 29 0d 0a 50 |e(img,us|cita)..P|
|00000380| 72 65 76 69 65 77 28 69 | 6d 67 2c 22 4f 75 74 70 |review(i|mg,"Outp|
|00000390| 75 74 22 2c 35 2c 35 2c | 31 31 30 2c 34 30 30 29 |ut",5,5,|110,400)|
|000003a0| 0d 0a 44 73 70 4d 65 73 | 28 22 45 6e 64 22 29 |..DspMes|("End") |
+--------+-------------------------+-------------------------+--------+--------+